package c0907m.group2.aitsm.core.entity;

import java.sql.Date;

/**
 * Author: LongDH
 * Date: 4/27/11
 * Time: 2:46 PM
 * <p/>
 * Contain information of Students table's row.
 */
public class StudentInfo {
    private int id;
    private int classId;
    private String name;
    private Date birthday;
    private boolean male;
    private String description;
    private boolean active;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getClassId() {
        return classId;
    }

    public void setClassId(int classId) {
        this.classId = classId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public boolean isMale() {
        return male;
    }

    public void setMale(boolean male) {
        this.male = male;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public boolean isActive() {
        return active;
    }

    public void setActive(boolean active) {
        this.active = active;
    }

    @Override
    public String toString() {
        return "StudentInfo{" +
                "id=" + id +
                ", classId=" + classId +
                ", name='" + name + '\'' +
                ", birthday=" + birthday +
                ", male=" + male +
                ", description='" + description + '\'' +
                ", active=" + active +
                '}';
    }
}
